
using System.Threading;
using System.Text;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Collections.Generic;
namespace com.tc.gateway.tunnel
{

    public class MultiOutputStream : MemoryStream
    {
        IPEndPoint group = null;
        UdpClient socket = null;


        int port;
        public MultiOutputStream(IPEndPoint g, UdpClient s, int po)
        {
            this.group = g;
            this.socket = s;
            this.port = po;


        }

       public void write(byte[] b, int off, int len)
        {

            socket.Send(b, b.Length, group);

        }

      
        public void write(byte[] b)
        {

            socket.Send(b, b.Length, group);

        }

    }
}